<template>
	<view id="dataStatistics">
		<view class="top">
			<view>大潜总产量</view>
			<view style="font-weight: bold; font-size: 70rpx;">{{all_jf}}</view>
		</view>
		<view class="content">
			<view>
				<view>全网总累计小潜</view>
				<view>{{all_money}}</view>
			</view>
			<view>
				<view>全网流通大潜</view>
				<view>{{all_user_jf}}</view>
			</view>
			<view>
				<view>今日总空投大潜</view>
				<view>{{day_airdrop_jf}}</view>
			</view>
			
			<view>
				<view>今日大潜价值</view>
				<view>{{jf_money}}</view>
			</view>
			<view>
				<view>今日销毁大潜</view>
				<view>{{day_destruction}}</view>
			</view>
			<view>
				<view>累计销毁大潜</view>
				<view>{{all_destruction}}</view>
			</view>
			<!-- <view>
				<view>今日回流积分</view>
				<view>82350855.3804</view>
			</view>
			<view>
				<view>累计回流积分</view>
				<view>82350855.3804</view>
			</view> -->
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				day_destruction:0,
				all_destruction:0,
				all_user_jf:0,
				airdrop_jf:0,
				day_airdrop_jf:0,
				jf_money:0,
				all_jf:0,
				all_money:0
				
				
				
			}
		},
		onShow(){
			this.$myRequest({
				url: 'api/index/jf_data',
				method:'POST',
			}).then(res=>{
				if(res.data.code==1){
					this.day_destruction=res.data.data.day_destruction;
					this.all_destruction=res.data.data.all_destruction;
					this.all_user_jf=res.data.data.all_user_jf;
					this.airdrop_jf=res.data.data.airdrop_jf;
					this.day_airdrop_jf=res.data.data.day_airdrop_jf;
					this.jf_money=res.data.data.jf_money;
					this.all_jf=res.data.data.all_jf;
					this.all_money=res.data.data.all_money;
				}
			})
		},
		methods: {
			
		}
	}
</script>

<style lang="scss">
	#dataStatistics{
		min-height: 100vh;
		padding: 0 30rpx;
		background-color: #f6f7f9;
		.top{
			background: linear-gradient(70deg,#f0e28a,#df9c56);
			border-radius: 20rpx;
			width: 100%;
			padding: 60rpx 0;
			text-align: center;
		}
		.content{
			display: flex;
			justify-content: space-between;
			align-items: flex-start;
			flex-wrap: wrap;
			&>view{
				width: 48%;
				background-color: #fff;
				margin-top: 30rpx;
				text-align: center;
				padding: 20rpx 0;
				&>view:nth-of-type(1){
					font-weight: bold;
					font-size: 28rpx;
					margin-bottom: 10rpx;
				}
				&>view:nth-of-type(2){
					color:#e4a249;
					font-size: 36rpx;
					font-weight: bold;
				}
			}
		}
	}

</style>
